package com.ruoyi.iot.mapper;

import com.ruoyi.iot.vo.CameraVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.Instant;
import java.util.List;

@Mapper
public interface CameraMapper {

    List<CameraVO> get(@Param("sensorId") String sensorId, @Param("startTime") Instant startTime, @Param("endTime") Instant endTime);

    CameraVO getNew(@Param("sensorId") String sensorId);

    List<CameraVO> getRange(@Param("sensorId") String sensorId, @Param("targetPoints") Integer targetPoints, @Param("startTime") Instant startTime, @Param("endTime") Instant endTime);
}
